﻿<loki:WpfBootStrapper
    x:Class="Luna.UI.Wpf.LunaApp"
    x:TypeArguments="lunavm:MainViewModel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:loki="clr-namespace:Loki.UI.Wpf;assembly=Loki.UI.Wpf"
    xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
    xmlns:lunavm="clr-namespace:Luna.UI;assembly=Luna.Core"
    xmlns:dxwui="http://schemas.devexpress.com/winfx/2008/xaml/windowsui"
    xmlns:dxwuii="http://schemas.devexpress.com/winfx/2008/xaml/windowsui/internal"
    ThemeName="NewTheme">
    <Application.Resources>
        <loki:LokiTemplateSelector x:Key="LokiTemplateSelector" />
        <BitmapImage UriSource="pack://application:,,,/Luna;component/Resources/connector_enabled.png" x:Key="IMG_connector_enabled" />
        <BitmapImage UriSource="pack://application:,,,/Luna;component/Resources/connector_disabled.png" x:Key="IMG_connector_disabled" />
        <BitmapImage UriSource="pack://application:,,,/Luna;component/Resources/mni_add.png" x:Key="MNI_add" />
        <BitmapImage UriSource="pack://application:,,,/Luna;component/Resources/mni_refresh.png" x:Key="MNI_refresh" />
        <BitmapImage UriSource="pack://application:,,,/Luna;component/Resources/mni_save.png" x:Key="MNI_save" />
        <BitmapImage UriSource="pack://application:,,,/Luna;component/Resources/accounts.png" x:Key="MNI_accounts" />
        <BitmapImage UriSource="pack://application:,,,/Luna;component/Resources/contacts.png" x:Key="MNI_contacts" />
        <BitmapImage UriSource="pack://application:,,,/Luna;component/Resources/mni_zoho.png" x:Key="MNI_zoho" />
        <BitmapImage UriSource="pack://application:,,,/Luna;component/Resources/mni_google.png" x:Key="MNI_google" />
        <BitmapImage UriSource="pack://application:,,,/Luna;component/Resources/mni_excel.png" x:Key="MNI_excel" />
        <!--<BitmapImage UriSource="pack://application:,,,/Luna;component/Resources/lune10.jpg" x:Key="BACK" />-->
        <BitmapImage UriSource="pack://application:,,,/Luna;component/Resources/Pleiades2.jpg" x:Key="BACK" />
        <BitmapImage UriSource="pack://application:,,,/Luna;component/Resources/mni_search.png" x:Key="MNI_search" />
        <BitmapImage UriSource="pack://application:,,,/Luna;component/Resources/mni_open.png" x:Key="MNI_open" />
        <!--<Style TargetType="dxg:GridControl">
            <Setter Property="loki:GridExportBehaviour.IsLinked" Value="True" />
        </Style>-->
        <Style TargetType="{x:Type dxwui:PageAdornerControl}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition />
                            </Grid.RowDefinitions>
                            <Grid Margin="0,0,0,10">
                                <dxwuii:NavigationHeaderControl FontSize="20"
                                            VerticalAlignment="Center"
                                            x:Name="PART_NavigationHeader"
                                            Content="{Binding  Path=Header, RelativeSource={RelativeSource TemplatedParent}}"
                                            ContentTemplate="{Binding Path=HeaderTemplate, RelativeSource={RelativeSource TemplatedParent}}"
                                            BackCommand="{Binding Path=BackCommand, RelativeSource={RelativeSource TemplatedParent}}"
                                            ShowBackButton="{Binding Path=ShowBackButton, RelativeSource={RelativeSource TemplatedParent}}" />
                            </Grid>
                            <ContentPresenter />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Application.Resources>
</loki:WpfBootStrapper>